package com.bjtu.ptsite.model;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * @author Zehao Wang, Junjie Zhang, Yutao Wei
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserDTO {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 2, max = 40, message = "用户名长度2-20个字符")
    private Integer userId;
    private Integer identificationNumber;
    private String avatar;
    private String username;
    private String address;
    private Integer level;
}
